//
//  PS_PayPasswordViewController.m
//  FinanceSupermarket
//
//  Created by xue on 2018/12/20.
//  Copyright © 2018年 xuezi. All rights reserved.
//

#import "PS_PayPasswordViewController.h"
#import "ZLSafetyPswView.h"

@interface PS_PayPasswordViewController ()
@property (weak, nonatomic) IBOutlet UIView *pswView;
@end

@implementation PS_PayPasswordViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.nav_titleLabel.text =@"支付密码";
    
    
    [self creatMainVew];
   
}

-(void)creatMainVew{

    // 加密支付页面
    ZLSafetyPswView *pswView = [[ZLSafetyPswView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH - 70, 45)];
    [self.view addSubview:pswView];
    [self.pswView addSubview:pswView];
    pswView.passwordDidChangeBlock = ^(NSString *password) {
        NSLog(@"---用户输入密码为: %@",password);
    };
    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self.view endEditing:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
